projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55edc81
)
wayland: Return a display name
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 28 Jul 2015 04:43:54 +0000
(
00:43
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 28 Jul 2015 04:43:54 +0000
(
00:43
-0400)
Make gdk_screen_make_display_name() return a likely correct
name for the Wayland socket we are using.
gdk/wayland/gdkscreen-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkscreen-wayland.c
b/gdk/wayland/gdkscreen-wayland.c
index b07483bc697ae377d743a4f490fccc63973003cc..ee95107fb2316b5df1249010528f118b812ac61b 100644
(file)
--- a/
gdk/wayland/gdkscreen-wayland.c
+++ b/
gdk/wayland/gdkscreen-wayland.c
@@
-301,7
+301,13
@@
gdk_wayland_screen_is_composited (GdkScreen *screen)
static gchar *
gdk_wayland_screen_make_display_name (GdkScreen *screen)
{
- return NULL;
+ const gchar *name;
+
+ name = g_getenv ("WAYLAND_DISPLAY");
+ if (name == NULL)
+ name = "wayland-0";
+
+ return g_strdup (name);
}
static GdkWindow *